package com.centling.bluecollar.login.DAO;

import org.hibernate.Session;  
import org.hibernate.SessionFactory;  
import org.springframework.beans.factory.annotation.Autowired;  
  
public class BaseDAO {  
    @Autowired  
    private SessionFactory sessionFactory;  
  
    public SessionFactory getSessionFactory() {  
        return sessionFactory;  
    }  
      
    public Session getSession() {  
        return sessionFactory.getCurrentSession();  
    }  
}  
